import React from 'react'

// 列表
export async function apiGetThirdChannelPage(params) {
    return await React.$postJson('/product/api/b/thirdChannel/page', params);
}
// 新增|编辑
export async function apiGetThirdChannelAddOrEdit(params) {
    return await React.$postJson('/product/api/b/thirdChannel/addOrEdit', params);
}
// 删除
export async function apiGetThirdChannelDel(params) {
    return await React.$get('/product/api/b/thirdChannel/del', params);
}
// 频道商品分页
export async function apiGetThirdChannelGoodsRelationPage(params) {
    return await React.$postJson('/product/api/b/thirdChannelGoodsRelation/page', params);
}
// 频道新增商品
export async function apiGetThirdChannelGoodsRelationAdd(params) {
    return await React.$postJson('/product/api/b/thirdChannelGoodsRelation/add', params);
}
// 三方商品搜索（淘宝/拼多多）
export async function apiGetSearchThirdGoods(params) {
    return await React.$postJson('/product/api/b/thirdGoods/searchThirdGoods', params);
}
// 批量删除频道商品
export async function apiGetThirdChannelGoodsRelationDel(params) {
    return await React.$postJson('/product/api/b/thirdChannelGoodsRelation/del', params);
}
// 频道详情
export async function apiGetThirdChannelDetail(params) {
    return await React.$get('/product/api/b/thirdChannel/detail', params);
}
